import request from '@/utils/request'

// 提现订单渠道-修改
export function withdrawalOrderChannels(params) {
  return request({
    url: '/withdrawalOrder/getCashChannel',
    method: 'get',
    params: params
  })
}

// 订单-列表(已审核 待审核状态不一样)
export function getWithdrawalOrder(params) {
  return request({
    url: '/withdrawalOrder/list',
    method: 'get',
    params:params
  })
}


// ······························· 【已审核提款订单---start】 ····································
// 已审核提款订单-导出
export function exportWithdrawOrder(params) {
  return request({
    url: '/export/checkCashOrderExport',
    method: 'get',
    params:params
  })
}
// ······························· 【已审核提款订单---start】 ····································




// ······························· 【待审核提款订单---start】 ····································
// 待审核提款订单-锁定
export function lockWithdrawalOrder(data) {
  return request({
    url: '/withdrawalOrder/setOrderLock',
    method: 'put',
    data: data
  })
}

// 待审核提款订单-解锁
export function unlockWithdrawalOrder(data) {
  return request({
    url: '/withdrawalOrder/setOrderUnLock',
    method: 'put',
    data: data
  })
}

// 待审核提款订单-修改
export function editWithdrawalOrder(data) {
  return request({
    url: '/withdrawalOrder/setOrderStatus',
    method: 'put',
    data: data
  })
}

// 订单风控-获取
export function getOrderRisk(params) {
  return request({
    url: '/withdrawalOrder/getRisKControl',
    method: 'get',
    params: params
  })
}

// 订单风控-修改
export function orderRisk(data) {
  return request({
    url: '/withdrawalOrder/setRisKControl',
    method: 'put',
    data: data
  })
}

// 待审核提款订单-导出
export function exportWithdrawalOrder(params) {
  return request({
    url: '/export/cashOrderExport',
    method: 'get',
    params:params
  })
}

// 订单-合计
export function orderSummation(params) {
  return request({
    url: '/withdrawalOrder/reportFilter',
    method: 'get',
    params:params
  })
}
// ······························· 【待审核提款订单---end】 ····································




// ······························· 【第三方充值订单---start】 ····································
// 充值订单-列表
export function getTopOrder(params) {
  return request({
    url: '/payOrder/list',
    method: 'get',
    params:params
  })
}

// 充值订单-合计
export function getTotalOrders(params) {
  return request({
    url: '/payOrder/reportFilter',
    method: 'get',
    params:params
  })
}

// 充值订单-修改
export function editTopOrder(data) {
  return request({
    url: '/payOrder/setOrderStatus',
    method: 'put',
    data: data
  })
}

// 订单通知失败 再次通知
export function orderServer(data) {
  return request({
    url: '/pay/serverNotice',
    method: 'post',
    data:data
  })
}

// 提现渠道
export function paymentChannel(params) {
  return request({
    url: '/pay/getAllPayChannel',
    method: 'get',
    params:params
  })
}

// 订单导出
export function exportOrder(params) {
  return request({
    url: '/export/payOrderExport',
    method: 'get',
    params:params
  })
}
// ······························· 【第三方充值订单---end】 ····································




